package com.sinsz.c;

import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author chenjianbo
 * @date 2017/11/24
 */
@Component
public abstract class AbstractRedisTemplate {

    @Resource
    private RedisTemplate<String, Object> objectTemplate;

    @Resource
    private StringRedisTemplate stringTemplate;

    @Resource
    private RedisTemplate<String, Object> jsonTemplate;

    public RedisTemplate<String, Object> getObjectTemplate() {
        return objectTemplate;
    }

    public StringRedisTemplate getStringTemplate() {
        return stringTemplate;
    }

    public RedisTemplate<String, Object> getJsonTemplate() {
        return jsonTemplate;
    }
}